package com.damacheng009.future.alarm.toolkit;

public class HTMLTool {

	private static final String NEW_LINE = "<br>";
	
	private static final String FONT_COLOR_PATTERN 
		= "<font color=\"%s\">%s</font>";
	
	public static String appendNewLine(String content) {
		return content + NEW_LINE;
	}
	
	public static String green(String text) {
		return String.format(FONT_COLOR_PATTERN, "green", text);
	}
	
	public static String red(String text) {
		return String.format(FONT_COLOR_PATTERN, "red", text);
	}
	
	public static String yellow(String text) {
		return String.format(FONT_COLOR_PATTERN, "yellow", text);
	}
	
	public static String blue(String text) {
		return String.format(FONT_COLOR_PATTERN, "blue", text);
	}
}
